package com.weasel.im.common.manager;

import com.weasel.im.common.domain.IMSession;
import com.weasel.im.common.service.IMSessionDAO;
import com.weasel.im.common.service.impl.DefaultIMSessionDAO;

/**
 * Created by Dylan on 2015/12/3.
 */
public class IMSessionManager {

    private IMSessionDAO dao = new DefaultIMSessionDAO();

    public void create(IMSession session) {

        dao.create(session);
    }

    public void delete(String sessionid) {

        dao.delete(sessionid);
    }

    public IMSession get(String sessionid) {

        return dao.get(sessionid);
    }

    public IMSessionDAO getDao() {
        return dao;
    }

    public void setDao(IMSessionDAO dao) {
        this.dao = dao;
    }
}
